package cn.gson.oasys.services.plan.impl;

import cn.gson.oasys.model.dao.plandao.PlanDao;
import cn.gson.oasys.model.entity.plan.Plan;
import cn.gson.oasys.services.plan.PlanService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Service
@Transactional
public class PlanServiceImpl implements PlanService {

    @Autowired
    PlanDao planDao;

    //记日志
    Logger log = LoggerFactory.getLogger(getClass());

    //根据用户id获取计划列表信息
    @Override
    public List<Plan> findByUserlimit(Long userId) {
        return planDao.findByUserlimit(userId);
    }
}
